/** \file ChangePitch.h
    \author belot.nicolas
    change the pitch of the note...
*/

#ifndef CHANGEPITCH_H
#define CHANGEPITCH_H 1

#include "PlayingEffect.h"
#include "Converter.h"

namespace libtrckr {

class ChangePitch : public PlayingEffect {
	/** \class libtrckr::ChangePitch
	\brief Change the pitch of a sample from ratio.
	\note ratio = input/output
	*/
	public:
	/**Constructor */
	ChangePitch();
	/**Copy Constructor */
	ChangePitch(const ChangePitch&);
	/** Destructor */
	~ChangePitch();
	/** Tune the Change of pitch
	\param conf 0 => the ratio change
	*/
	void Tune(DynArray<double>);

	Buffer& apply(Buffer&,int*);

	private:
	Converter c;
	
};

}

#endif

